文字輸入框
<EditText
android:id="@+id/editText"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:textSize="24sp"
android:text="EditText"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
android:typeface="serif"
android:typeface="sans"
android:typeface="normal"
android:typeface="monospace"
android:background="@null"
android:scrollbars="vertical"
android:fadeScrollbars="false"
android:imeOptions="flagNoExtractUi"
android:imeOptions="flagNoExtractUi"
android:focusableInTouchMode="true"
android:digits="1234567890."
android:inputType="numberDecimal"
android:inputType="text"
android:lines="1"
android:maxLength="數字"
顯示圖片的東西
android:rotation="90"
android:adjustViewBounds="true"
android:scaleType="center"
android:scaleType="centerInside"
android:scaleType="fitCenter"
android:scaleType="fitEnd"
android:scaleType="fitXY"
android:scaleType="matrix"
| 透明百分比 | 色碼 | |
|---|---|---|
| 不透明 | 100% | FF |
| ↑ | 95% | F2 |
| │ | 90% | E6 |
| │ | 85% | D9 |
| │ | 80% | CC |
| │ | 75% | BF |
| │ | 70% | B3 |
| │ | 65% | A6 |
| │ | 60% | 99 |
| │ | 55% | 8C |
| 中間 | 50% | 80 |
| │ | 45% | 73 |
| │ | 40% | 66 |
| │ | 35% | 59 |
| │ | 30% | 4D |
| │ | 25% | 40 |
| │ | 20% | 33 |
| │ | 15% | 26 |
| │ | 10% | 1A |
| ↓ | 5% | 0D |
| 透明 | 0% | 00 |
本來預記還有這些要補充,不過又快要十二點了,要改的東西太多,就改天吧